<link rel="stylesheet" href="__PUBLIC__/css/index.css" />
<div class='content'>
	<!-- 第一个div包含  上面的一个广告位和热卖畅销 -->
	<div>
		<include file='Public/center_adv' />
		<!-- <include file='Public/hot_sort' /> -->
	</div>
	<div class='content_center'>
		<include file='Public/position' />
		<div class='clear'>
			<div class='center_left'>
				<!-- 选项卡开始 -->
				<div>
					<ul class="nav nav-tabs " id="myTab">
					  <li class="active"><a href="#festival_recommend" data-toggle="tab">节日推荐</a></li>
					  <li><a href="#season_recommend" data-toggle="tab">四季推荐</a></li>
					  <li><a href="#chilrd_recommend" data-toggle="tab">儿童推荐</a></li>
					</ul>
					<div class="tab-content nav_tab_show clear">

					  <div class="tab-pane  active" id="festival_recommend">
						<foreach name='holidayFoodRec' item='hfr_c'>
						  	<div class="hot_tab_div clear "> 
								<a href="__CONTROLLER__/foodDetail/<{$hfr_c.goods_id}>"><img src="<{$hfr_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$hfr_c.goods_name}>">商品名:<a href="__CONTROLLER__/foodDetail/<{$hfr_c.goods_id}>"><{$hfr_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$hfr_c.goods_price}></li>
									<li>会员价:<font>¥<{$hfr_c.goods_uprice}></font></li>
								</ul>
						  	</div>
						</foreach>
					  </div>

					  <div class="tab-pane" id="season_recommend">
						<foreach name='seasonFoodRec' item='sfr_c'>
						  	<div class="hot_tab_div clear <if condition='$i==1'> tab-pane-first </if>">
								<a href="__CONTROLLER__/foodDetail/<{$sfr_c.goods_id}>"><img src="<{$sfr_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$sfr_c.goods_name}>">商品名: <a href="__CONTROLLER__/foodDetail/<{$sfr_c.goods_id}>"><{$sfr_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$sfr_c.goods_price}></li>
									<li>会员价:<font>¥<{$sfr_c.goods_uprice}></font></li>
								</ul>
						  	</div>
					  	</foreach>
					 </div>

					  <div class="tab-pane" id="chilrd_recommend">
					  	<foreach name='childFoodRec' item='cfr_c'>
						  	<div class="hot_tab_div clear <if condition='$i==1'> tab-pane-first </if>">
								<a href="__CONTROLLER__/foodDetail/<{$cfr_c.goods_id}>"><img src="<{$cfr_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$cfr_c.goods_name}>">商品名:<a href="__CONTROLLER__/foodDetail/<{$cfr_c.goods_id}>"><{$cfr_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$cfr_c.goods_price}></li>
									<li>会员价:<font>¥<{$cfr_c.goods_uprice}></font></li>
								</ul>
						  	</div>	
					  	</foreach>
					  </div>

					</div>
				</div>	
				<!-- 选项卡结束 -->	

				<br/>
				<!-- 选项卡开始 -->
				<div>
					<ul class="nav nav-tabs " id="myTab">
					  <li class="active"><a href="#home" data-toggle="tab">我的节日</a></li>
					  <li><a href="#profile" data-toggle="tab">我的四季</a></li>
					  <li><a href="#messages" data-toggle="tab">我的童年</a></li>
					</ul>
					<div class="tab-content nav_tab_show clear">
					  <div class="tab-pane  active" id="home">
					  	<foreach name='holidayFoodMy' item='hfm_c'>
						  	<div class="hot_tab_div clear "> 
								<a href="__CONTROLLER__/foodDetail/<{$hfm_c.goods_id}>"><img src="<{$hfm_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$hfm_c.goods_name}>">商品名:<a href="__CONTROLLER__/foodDetail/<{$hfm_c.goods_id}>"><{$hfm_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$hfm_c.goods_price}></li>
									<li>会员价:<font>¥<{$hfm_c.goods_uprice}></font></li>
								</ul>
						  	</div>
						</foreach>
					  </div>


					  <div class="tab-pane" id="profile">
					  	<foreach name='seasonFoodMy' item='sfm_c'>
						  	<div class="hot_tab_div clear "> 
								<a href="__CONTROLLER__/foodDetail/<{$sfm_c.goods_id}>"><img src="<{$sfm_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$sfm_c.goods_name}>">商品名:<a href="__CONTROLLER__/foodDetail/<{$sfm_c.goods_id}>"><{$sfm_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$sfm_c.goods_price}></li>
									<li>会员价:<font>¥<{$sfm_c.goods_uprice}></font></li>
								</ul>
						  	</div>
						</foreach>
					 </div>



					  <div class="tab-pane" id="messages">
						<foreach name='childFoodMy' item='cfm_c'>
						  	<div class="hot_tab_div clear "> 
								<a href="__CONTROLLER__/foodDetail/<{$cfm_c.goods_id}>"><img src="<{$cfm_c.goods_pic}>" alt=""></a>
								<ul>
									<li title="<{$cfm_c.goods_name}>">商品名:<a href="__CONTROLLER__/foodDetail/<{$cfm_c.goods_id}>"><{$cfm_c.goods_name|mb_substr=0,4,'utf-8'}>...</a></li>
									<li>普通价:¥<{$cfm_c.goods_price}></li>
									<li>会员价:<font>¥<{$cfm_c.goods_uprice}></font></li>
								</ul>
						  	</div>
						</foreach>
					  </div>

					</div>
				</div>	
				<div class='boutique_food'>
					<h2 id='h2'>精品菜式<span class='classify_more'><a href="#">更多&gt;&gt;</a></span></h2>
					<foreach name="cookbookJData" item="cbj_v">
						<div class="hot_tab_div clear <if condition='$i==1'> tab-pane-first </if>">
							<a href="__CONTROLLER__/cookbookDetail/cookbook_id/<{$cbj_v.cookbook_id}>" ><img src="<{$cbj_v.cookbook_photo}>" alt=""></a>
							<ul>
								<li title='<{$cbj_v.cookbook_name}>'><a href="__CONTROLLER__/cookbookDetail/cookbook_id/<{$cbj_v.cookbook_id}>" ><span class="glyphicon glyphicon-fire"></span> <{$cbj_v.cookbook_name|mb_substr=0,4,'utf-8'}>...</a></li>
								<li>[<{$cbj_v.cookbook_pv}>] 次访问</li>
								<li><span class="glyphicon glyphicon-thumbs-down"></span>[<{$cbj_v.cookbook_bad}>]&nbsp;&nbsp; 
									<font><span class="glyphicon glyphicon-thumbs-up"></span>[<{$cbj_v.cookbook_good}>]</font>
								</li>
							</ul>
					  	</div>
					</foreach>
				</div>
				<!-- 选项卡结束 -->	
				<!-- 左侧开始 -->	
				<div class='center_left_adv'>
					<a href="#">
						<img class='img-rounded' src="__PUBLIC__/images/leftadv.gif" alt="" >
					</a>
				</div>
				<!-- 左侧结束 -->
				<!-- 加入我们开始 -->	
				<div class='join_us'>
					<h2 id='h2'>合作加盟<span class='classify_more'><a href="__CONTROLLER__/joinUs">更多&gt;&gt;</a></span></h2>
					<foreach name='joinData' item='join_v'>
					<div class="panel-group" id="accordion">
						<div class="panel-heading">
							<div class="panel-heading">
						      <h4 class="panel-title">
						        <a data-toggle="collapse" data-parent="#accordion" href="#collapse<{$join_v.join_id}>">
						          <span class="glyphicon glyphicon-hand-right"></span>&nbsp;&nbsp;<{$join_v.join_name}>
						        </a>
						      </h4>
						    </div>
							<div id="collapse<{$join_v.join_id}>" class="panel-collapse collapse join-collapse">
						      <div class="panel-body">
						      	<ul>
						      		<li>主营：<{$join_v.join_main}></li>
						      		<li>公司电话：<{$join_v.join_phone}></li>
						      		<li>联系人：<{$join_v.join_linkman}></li>
						      		<li>联系电话：<{$join_v.join_linkphone}></li>
						      	</ul>
						      </div>
							</div>
						</div>
					</div>
					</foreach>
				</div>
				<!-- 加入我们结束 -->	
			</div>

			<div class='center_right'>
				<!-- 轮播开始 -->
				<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
					  <!-- Indicators -->
					  	<ol class="carousel-indicators">
						    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
						    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
						    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
						    <li data-target="#carousel-example-generic" data-slide-to="3"></li>
						    <li data-target="#carousel-example-generic" data-slide-to="4"></li>
						</ol>

					  <!-- Wrapper for slides -->
					  <div class="carousel-inner">
					    <div class="item active">
					      <a href='#'><img src="__PUBLIC__/images/food/demo/big1.jpg" alt="..." class="img-rounded"></a>
					      <div class="carousel-caption">
					        <a href='#'>first</a>
					      </div>
					    </div>
					    <div class="item">
					       <a href='#'><img src="__PUBLIC__/images/food/demo/big2.jpg" alt="..." class="img-rounded"></a>
					      <div class="carousel-caption">
					       second
					      </div>
					    </div>
					    <div class="item">
					       <a href='#'><img src="__PUBLIC__/images/food/demo/big3.jpg" alt="..." class="img-rounded"></a>
					      <div class="carousel-caption">
					       third
					      </div>
					    </div>
					    <div class="item">
					       <a href='#'><img src="__PUBLIC__/images/food/demo/big4.jpg" alt="..." class="img-rounded"></a>
					      <div class="carousel-caption">
					       four
					      </div>
					    </div>
					    <div class="item">
					       <a href='#'><img src="__PUBLIC__/images/food/demo/big5.jpg" alt="..." class="img-rounded"></a>
					      <div class="carousel-caption">
					       five
					      </div>
					    </div>
					  </div>

					  <!-- Controls -->
					  <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
					    <span class="glyphicon glyphicon-chevron-left"></span>
					  </a>
					  <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
					    <span class="glyphicon glyphicon-chevron-right"></span>
					  </a>
				</div>	
				<!-- 轮播结束 -->
				<div class='classify'>
					<h2 id='h2'>
						<font>1F</font>
						佳味菜肴
						<span class='classify_more'>
							<a href="__CONTROLLER__/cookbookList"><span class='glyphicon glyphicon-list'></span> 更多</a>
						</span>
					</h2>
					<ul class='clear'>
						<foreach name="cookbookData" item="cb_v">
						 	<li>
						 		<a href="__CONTROLLER__/cookbookDetail/cookbook_id/<{$cb_v.cookbook_id}>" >
						 			<img src="<{$cb_v.cookbook_photo}>" alt="">
						 		</a>
						 		<div class='classify_info'>
									<{$cb_v.cookbook_description}>
						 		</div>
								<center>
									<a href="" class='food_name'><{$cb_v.cookbook_name}></a>
								</center>
						 	</li>
						</foreach>				 						 			
					</ul>					 
				</div>

				<div class='classify'>
					<h2 id='h2'><font>2F</font>节日食品<span class='classify_more'><a href="__CONTROLLER__/foodList/type/3"><span class='glyphicon glyphicon-list'></span> 更多</a></span></h2>
					<ul class='clear'>
						<foreach name='holidayFoodData' item='v3'>
						 	<li>
						 		<a href="__CONTROLLER__/foodDetail/food_id/<{$v3.goods_id}>" >
						 			<img src="<{$v3.goods_pic.one}>" alt="">
						 		</a>
						 		<div class='classify_info'>
						 			<{$v3.goods_content}>
						 		</div>
								<center>
									<a href="" class='food_name'><{$v3.goods_name}></a>
									<span style='display:block'>普通价：¥<{$v3.goods_price}></span>
									<span style='display:block'>会员价：¥<font class='show_important_red'><{$v3.goods_uprice}></font></span>
								</center>
						 	</li>
						</foreach>							 						 			
					</ul>					 
				</div>

				<div class='classify'>
					<h2 id='h2'><font>3F</font>儿童食品<span class='classify_more'><a href="__CONTROLLER__/foodList/type/1"><span class='glyphicon glyphicon-list'></span> 更多</a></span></h2>
					<ul class='clear'>
						<foreach name='childFoodData' item='cfd_v'>
						 	<li>
						 		<a href="__CONTROLLER__/foodDetail/food_id/<{$cfd_v.goods_id}>" >
						 			<img src="<{$cfd_v.goods_pic}>" alt="">
						 		</a>
						 		<div class='classify_info'>
						 			<{$cfd_v.goods_content}>
						 		</div>
								<center>
									<a href="" class='food_name'><{$cfd_v.goods_name}></a>
									<span style='display:block'>普通价：¥<{$cfd_v.goods_price}></span>
									<span style='display:block'>会员价：¥<font class='show_important_red'><{$cfd_v.goods_uprice}></font></span>
								</center>
						 	</li>
						</foreach>							 						 			
					</ul>					 
				</div>

				<div class='classify'>
					<h2 id='h2'><font>4F</font>四季食品<span class='classify_more'><a href="__CONTROLLER__/foodList/type/2"><span class='glyphicon glyphicon-list'></span> 更多</a></span></h2>
					<ul class='clear'>
						<foreach name='seasonFoodData' item='sfd_v'>
						 	<li>
						 		<a href="__CONTROLLER__/foodDetail/food_id/<{$sfd_v.goods_id}>" >
						 			<img src="<{$sfd_v.goods_pic}>" alt="">
						 		</a>
						 		<div class='classify_info'>
						 			<{$sfd_v.goods_content}>
						 		</div>
								<center>
									<a href="" class='food_name'><{$sfd_v.goods_name}></a>
									<span style='display:block'>普通价：¥<{$sfd_v.goods_price}></span>
									<span style='display:block'>会员价：¥<font class='show_important_red'><{$sfd_v.goods_uprice}></font></span>
								</center>
						 	</li>
						</foreach>							 						 			
					</ul>					 
				</div>

			</div><!--end center_right-->
		</div>
	</div>

	<!-- footer下面的广告和友情链接 -->
	<div>
		<include file='Public/footer_adv' />
		<include file='Public/footer_link' />
	</div>
</div>

<script>
	var index_var = {
		fresh_img :"__CONTROLLER__/verify/"+Math.random(),
		login_url:"__MODULE__/User/userLogin",
		login_out_url:"__MODULE__/User/userLoginOut",
		ajax_check_verify_url:"__MODULE__/User/ajaxCheckVerify"
	}

</script>